package com.originskyseed.platform.count.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author tao
 * @date 2020/8/3 16:10
 */
public class Online implements Serializable {

	private static final long serialVersionUID = -3196594512735339015L;

	/**
	 * 主键
	 */
	private String id;

	/**
	 * 访客标识码
	 */
	private String code;

	/**
	 * sessionId
	 */
	private String sessionId;

	/**
	 * 用户id
	 */
	private String userId;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 用户账号
	 */
	private String account;

	/**
	 * ip地址
	 */
	private String ip;

	/**
	 * 是否在线（0：离线；1：在线）
	 */
	private Integer status;

	/**
	 * 访问来源（1：管理后台，2：商城中台，3：商城前台，4：商城APP）
	 */
	private Integer source;

	/**
	 * 在线时长（格式：天：时：分：秒）
	 */
	private String onlineTime;

	/**
	 * 累计时长（格式：天：时：分：秒）
	 */
	private String totalTime;

	/**
	 * 登录时间
	 */
	private Date loginTime;

	/**
	 * 登出时间
	 */
	private Date logoutTime;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;

	/**
	 * 版本信息
	 */
	private Integer version;

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(String onlineTime) {
		this.onlineTime = onlineTime;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public String getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
